Kubernetes-master删除Deployment异常

异常信息

[fedora@kube-master kubernetes]$ kubectl delete deployment my-nginx 
error: timed out waiting for the condition

解决方案

  • 查看日志
journalctl -xe
  • 查看masterk8s组件状态信息
systemctl status kube-apiserver
systemctl status kube-controller-manager
systemctl status kube-scheduler
systemctl status etcd
  • 解决方案重启master各组件
systemctl restart kube-apiserver
systemctl restart kube-controller-manager
systemctl restart kube-scheduler
kubectl delete -f xx.yam

异常原因

Well , one node was in NotReady state. I also restarted some services on master and restarted the failing node. After that it was able to delete the deployment.

results matching ""

    No results matching ""